package test;

import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class mpp {
	public static void main(String[]args ) 
	{ 
		Map<String, Integer> folderList=new HashMap<String, Integer> ();
		folderList.put("first", 7800);
		folderList.put("second", 7900);
		folderList.put("trecond", 8900);
		int mapsize = folderList.size();
	
		Iterator keyValuePairs1 = folderList.entrySet().iterator();
		System.out.println("this is a test");
		for (int i = 0; i < mapsize; i++)
		{
		  Map.Entry entry = (Map.Entry) keyValuePairs1.next();
		  Object key = entry.getKey();
		  Object value = entry.getValue();
		  //System.out.println(key+":"+value);
		}
	
		Collection<Integer> values = folderList.values();
		for (Integer value : values)
		{
			
		}
		
		Object[] keyValuePairs2 = folderList.entrySet().toArray();
		for (int i = 0; i < mapsize; i++) {
		  Map.Entry entry = (Map.Entry) keyValuePairs2[i];
		  Object key = entry.getKey();
		  Object value = entry.getValue();
		  //System.out.println(key+":"+value);
		}
	}



}
